package com.dly.blog.mapper;

import com.dly.blog.domain.Token;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.List;

/**
* @author qq215
* @description 针对表【blog_token】的数据库操作Mapper
* @createDate 2023-07-10 22:41:08
* @Entity com.dly.blog.domain.Token
*/
public interface TokenMapper extends BaseMapper<Token> {

    List<Token> findAllValidTokenByUser(String id);

    int insertBatch(List<Token> tokens);

    int updateBathValid(String userId);

}




